<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>手机商城</title>
    <link rel="stylesheet" href="../../static/shopping/css/style.css">
    <script src="../../static/shopping/js/jquery-1.8.3.min.js"></script>
    <script src="../../static/shopping/js/banner.js"></script>
    <link href="../../static/boostrap/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
    <script>
        function changeVerifyCode(img) {
            img.src = "../Kaptcha?" + Math.floor(Math.random() * 100);
            /*利用随机数进行验证码图片替换，这里的src也是要与web.xml里的一致，
            要改动的话一起改
            */
        }

    </script>
</head>
<body>
<%--页眉--%>
<div class="container-fluid">
    <div class="row">
        <div class="dltop">
            <div class="dl">
                <img src="../../static/shopping/images/cs.jpg" alt="">　｜　商城　<a href="${pageContext.request.contextPath}/toIndex">首页</a>
            </div>
        </div>
    </div>

</div>
<%--主体--%>

    <form action="/toAdminIndex" method="POST" id="adminlogin">
        <div class="login">
            <div class="main">
                <div class="kuang" style="height: 360px;">
                    <div class="div1">管理员帐号登录</div>
                    <ul>

                        <li><input name="username" placeholder="用户名" type="text" value="" required></li>
                        <li><input name="password" placeholder="密码" type="password" value="" required></li>
                        <li>
                            <button onclick="login_submit()">提交</button>
                        </li>
                        <li style="color: red">
                            ${error}
                        </li>
                    </ul>

                </div>
            </div>
        </div>
    </form>
    <script>
        function login_submit() {


            var formData = new FormData;
            var verifyCodeActual = $('#j_captcha').val();

        }
    </script>
<%--页脚--%>
<div class="container-fluid">
    <div class="footer">
        <p>制作团队：晚睡协会</p>
    </div>
</div>
</body>
</html>